﻿<%@ Page Language="C#" Theme="Default" MasterPageFile="~/MasterPages/admin.master" AutoEventWireup="true"  CodeFile="ProductsProduct.aspx.cs" Inherits="ProductsProduct" Title="ProductsProduct List" %>

<asp:Content ID="Content2" ContentPlaceHolderID="ContentPlaceHolder2" Runat="Server">Products Product List</asp:Content>
<asp:Content ID="Content1" ContentPlaceHolderID="ContentPlaceHolder1" Runat="Server">
		<data:GridViewSearchPanel ID="GridViewSearchPanel1" runat="server" GridViewControlID="GridView1" PersistenceMethod="Session" />
		<br />
		<data:EntityGridView ID="GridView1" runat="server"			
				AutoGenerateColumns="False"					
				OnSelectedIndexChanged="GridView1_SelectedIndexChanged"
				DataSourceID="ProductsProductDataSource"
				DataKeyNames="ProductsId"
				AllowMultiColumnSorting="false"
				DefaultSortColumnName="" 
				DefaultSortDirection="Ascending"	
				ExcelExportFileName="Export_ProductsProduct.xls"  		
			>
			<Columns>
				<asp:CommandField ShowSelectButton="True" ShowEditButton="True" />				
				<asp:BoundField DataField="ProductsName" HeaderText="Products Name" SortExpression="[Products_Name]"  />
				<asp:BoundField DataField="ProductsTitle" HeaderText="Products Title" SortExpression="[Products_Title]"  />
				<asp:BoundField DataField="ProductsQuantity" HeaderText="Products Quantity" SortExpression="[Products_Quantity]"  />
				<asp:BoundField DataField="ProductsPrice" HeaderText="Products Price" SortExpression="[Products_Price]"  />
				<asp:BoundField DataField="ProductsUnit" HeaderText="Products Unit" SortExpression="[Products_Unit]"  />
				<asp:BoundField DataField="ClassId" HeaderText="Class Id" SortExpression="[Class_Id]"  />
				<asp:BoundField DataField="BrandId" HeaderText="Brand Id" SortExpression="[Brand_Id]"  />
				<asp:BoundField DataField="CategoryId" HeaderText="Category Id" SortExpression="[Category_Id]"  />
				<asp:BoundField DataField="ProductsDetail" HeaderText="Products Detail" SortExpression=""  />
				<asp:BoundField DataField="ProductsWarranty" HeaderText="Products Warranty" SortExpression="[Products_Warranty]"  />
				<asp:BoundField DataField="ProductsImage" HeaderText="Products Image" SortExpression="[Products_Image]"  />
				<asp:BoundField DataField="ProductsOrigin" HeaderText="Products Origin" SortExpression="[Products_Origin]"  />
				<asp:BoundField DataField="ProductsDescriptionImage" HeaderText="Products Description Image" SortExpression="[Products_DescriptionImage]"  />
				<asp:BoundField DataField="QuantityImport" HeaderText="Quantity Import" SortExpression="[QuantityImport]"  />
				<asp:BoundField DataField="QuantityCurrent" HeaderText="Quantity Current" SortExpression="[QuantityCurrent]"  />
				<asp:BoundField DataField="ProductsDateUpdate" DataFormatString="{0:d}" HtmlEncode="False" HeaderText="Products Date Update" SortExpression="[Products_DateUpdate]"  />
				<data:BoundRadioButtonField DataField="IsActive" HeaderText="Is Active" SortExpression="[IsActive]"  />
				<data:BoundRadioButtonField DataField="Ishot" HeaderText="Ishot" SortExpression="[Ishot]"  />
				<data:BoundRadioButtonField DataField="IsNew" HeaderText="Is New" SortExpression="[IsNew]"  />
			</Columns>
			<EmptyDataTemplate>
				<b>No ProductsProduct Found!</b>
			</EmptyDataTemplate>
		</data:EntityGridView>
		<br />
		<asp:Button runat="server" ID="btnProductsProduct" OnClientClick="javascript:location.href='ProductsProductEdit.aspx'; return false;" Text="Add New"></asp:Button>
		<data:ProductsProductDataSource ID="ProductsProductDataSource" runat="server"
			SelectMethod="GetPaged"
			EnablePaging="True"
			EnableSorting="True"
		>
			<Parameters>
				<data:CustomParameter Name="WhereClause" Value="" ConvertEmptyStringToNull="false" />
				<data:CustomParameter Name="OrderByClause" Value="" ConvertEmptyStringToNull="false" />
				<asp:ControlParameter Name="PageIndex" ControlID="GridView1" PropertyName="PageIndex" Type="Int32" />
				<asp:ControlParameter Name="PageSize" ControlID="GridView1" PropertyName="PageSize" Type="Int32" />
				<data:CustomParameter Name="RecordCount" Value="0" Type="Int32" />
			</Parameters>
		</data:ProductsProductDataSource>
	    		
</asp:Content>



